using System;
using System.Collections.Generic;
using System.Text;
using AAM;
using AAM.BIZ;

namespace CMS.BIZ
{
    [DatabaseTable(TableName = "DownloadFolders", TableAlias = "dwlFol")]
    public class BizDownloadFolder : BizObject
    {

        public static readonly ObjectType ObjectType = new ObjectType("BizDownloadFolder");

        private int downloadFolderID = 0;
        private string folderName = "";
        private string folderDescription = "";
        private int? parentFolderID = null;

        public BizDownloadFolder() 
            : base(new ObjectID(ObjectType, new object[] {0}))
        {
        }

        [DatabaseRow(PrimaryKey = true, Identity = true)]
        public int DownloadFolderID
        {
            get { return downloadFolderID; }
            set { downloadFolderID = value; ID[0] = value; }
        }
        [DatabaseRow()]
        public string FolderName
        {
            get { return folderName; }
            set { folderName = value; }
        }
        [DatabaseRow()]
        public string FolderDescription
        {
            get { return folderDescription; }
            set { folderDescription = value; }
        }
        [DatabaseRow()]
        public int? ParentFolderID
        {
            get { return parentFolderID; }
            set { parentFolderID = value; }
        }

    }
}
